<?php /* Smarty version 2.6.16, created on 2013-08-31 20:48:22
         compiled from d:%5Cwww%5Cclient%5Cgetbids/templates/default//modules/jobs/findjobs.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'strtolower', 'd:\\www\\client\\getbids/templates/default//modules/jobs/findjobs.tpl', 17, false),array('modifier', 'base64_encode', 'd:\\www\\client\\getbids/templates/default//modules/jobs/findjobs.tpl', 70, false),array('modifier', 'truncate', 'd:\\www\\client\\getbids/templates/default//modules/jobs/findjobs.tpl', 70, false),array('modifier', 'date_format', 'd:\\www\\client\\getbids/templates/default//modules/jobs/findjobs.tpl', 74, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_start'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '<link rel="stylesheet" type="text/css" href="';  echo $this->_tpl_vars['siteroot'];  echo '/templates/default/style/find_job_list.css">'; ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_end'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>


<section class="middle_portion">
	<section class="inner_head">Find Building &amp; Construction Jobs</section>
    <section class="inner_containstart">
    	<section class="inner_leftportion">
        	<section class="brows_tra_box">
            	<h4>Browse By Traders</h4>
                <ul>
                	<?php unset($this->_sections['t']);
$this->_sections['t']['name'] = 't';
$this->_sections['t']['loop'] = is_array($_loop=$this->_tpl_vars['getallTradeCat']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['t']['show'] = true;
$this->_sections['t']['max'] = $this->_sections['t']['loop'];
$this->_sections['t']['step'] = 1;
$this->_sections['t']['start'] = $this->_sections['t']['step'] > 0 ? 0 : $this->_sections['t']['loop']-1;
if ($this->_sections['t']['show']) {
    $this->_sections['t']['total'] = $this->_sections['t']['loop'];
    if ($this->_sections['t']['total'] == 0)
        $this->_sections['t']['show'] = false;
} else
    $this->_sections['t']['total'] = 0;
if ($this->_sections['t']['show']):

            for ($this->_sections['t']['index'] = $this->_sections['t']['start'], $this->_sections['t']['iteration'] = 1;
                 $this->_sections['t']['iteration'] <= $this->_sections['t']['total'];
                 $this->_sections['t']['index'] += $this->_sections['t']['step'], $this->_sections['t']['iteration']++):
$this->_sections['t']['rownum'] = $this->_sections['t']['iteration'];
$this->_sections['t']['index_prev'] = $this->_sections['t']['index'] - $this->_sections['t']['step'];
$this->_sections['t']['index_next'] = $this->_sections['t']['index'] + $this->_sections['t']['step'];
$this->_sections['t']['first']      = ($this->_sections['t']['iteration'] == 1);
$this->_sections['t']['last']       = ($this->_sections['t']['iteration'] == $this->_sections['t']['total']);
?> 
	                	<!--<li><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/jobs/1/<?php echo $this->_tpl_vars['getallTradeCat'][$this->_sections['t']['index']]['id']; ?>
/jobtype/postalcode/findjobs/">&raquo; <?php echo $this->_tpl_vars['getallTradeCat'][$this->_sections['t']['index']]['trade_category']; ?>
</a></li>-->
                        <li><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/jobs/<?php echo ((is_array($_tmp=$this->_tpl_vars['getallTradeCat'][$this->_sections['t']['index']]['new_tradename'])) ? $this->_run_mod_handler('strtolower', true, $_tmp) : strtolower($_tmp)); ?>
">&raquo; <?php echo $this->_tpl_vars['getallTradeCat'][$this->_sections['t']['index']]['trade_category']; ?>
</a></li>
                    <?php endfor; endif; ?>    
                    
                </ul>
                <h4>Browse By Job Type</h4>
                <ul>
                	<?php unset($this->_sections['t']);
$this->_sections['t']['name'] = 't';
$this->_sections['t']['loop'] = is_array($_loop=$this->_tpl_vars['getallTradeJobType']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['t']['show'] = true;
$this->_sections['t']['max'] = $this->_sections['t']['loop'];
$this->_sections['t']['step'] = 1;
$this->_sections['t']['start'] = $this->_sections['t']['step'] > 0 ? 0 : $this->_sections['t']['loop']-1;
if ($this->_sections['t']['show']) {
    $this->_sections['t']['total'] = $this->_sections['t']['loop'];
    if ($this->_sections['t']['total'] == 0)
        $this->_sections['t']['show'] = false;
} else
    $this->_sections['t']['total'] = 0;
if ($this->_sections['t']['show']):

            for ($this->_sections['t']['index'] = $this->_sections['t']['start'], $this->_sections['t']['iteration'] = 1;
                 $this->_sections['t']['iteration'] <= $this->_sections['t']['total'];
                 $this->_sections['t']['index'] += $this->_sections['t']['step'], $this->_sections['t']['iteration']++):
$this->_sections['t']['rownum'] = $this->_sections['t']['iteration'];
$this->_sections['t']['index_prev'] = $this->_sections['t']['index'] - $this->_sections['t']['step'];
$this->_sections['t']['index_next'] = $this->_sections['t']['index'] + $this->_sections['t']['step'];
$this->_sections['t']['first']      = ($this->_sections['t']['iteration'] == 1);
$this->_sections['t']['last']       = ($this->_sections['t']['iteration'] == $this->_sections['t']['total']);
?> 
	                	<li><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/findjobs/<?php echo ((is_array($_tmp=$this->_tpl_vars['getallTradeJobType'][$this->_sections['t']['index']]['new_jobtypename'])) ? $this->_run_mod_handler('strtolower', true, $_tmp) : strtolower($_tmp)); ?>
">&raquo; <?php echo $this->_tpl_vars['getallTradeJobType'][$this->_sections['t']['index']]['trade_category']; ?>
</a></li>
                    <?php endfor; endif; ?>
                </ul>
            </section>
        </section>
        
        <section class="inner_rightportion">
        	<section class="find_title">Find Job</section>
        	<section class="fin_job_top_srh_box">
            <form name="searchfrm" id="searchfrm" action="<?php echo $this->_tpl_vars['siteroot']; ?>
/jobs/findjobs/" method="POST" >
            	<select class="select" name="trade" id="trade" >
                	<option value="0">Select Trade</option>
                    <?php unset($this->_sections['t']);
$this->_sections['t']['name'] = 't';
$this->_sections['t']['loop'] = is_array($_loop=$this->_tpl_vars['getallTradeCat']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['t']['show'] = true;
$this->_sections['t']['max'] = $this->_sections['t']['loop'];
$this->_sections['t']['step'] = 1;
$this->_sections['t']['start'] = $this->_sections['t']['step'] > 0 ? 0 : $this->_sections['t']['loop']-1;
if ($this->_sections['t']['show']) {
    $this->_sections['t']['total'] = $this->_sections['t']['loop'];
    if ($this->_sections['t']['total'] == 0)
        $this->_sections['t']['show'] = false;
} else
    $this->_sections['t']['total'] = 0;
if ($this->_sections['t']['show']):

            for ($this->_sections['t']['index'] = $this->_sections['t']['start'], $this->_sections['t']['iteration'] = 1;
                 $this->_sections['t']['iteration'] <= $this->_sections['t']['total'];
                 $this->_sections['t']['index'] += $this->_sections['t']['step'], $this->_sections['t']['iteration']++):
$this->_sections['t']['rownum'] = $this->_sections['t']['iteration'];
$this->_sections['t']['index_prev'] = $this->_sections['t']['index'] - $this->_sections['t']['step'];
$this->_sections['t']['index_next'] = $this->_sections['t']['index'] + $this->_sections['t']['step'];
$this->_sections['t']['first']      = ($this->_sections['t']['iteration'] == 1);
$this->_sections['t']['last']       = ($this->_sections['t']['iteration'] == $this->_sections['t']['total']);
?> 
	                	<option <?php if ($this->_tpl_vars['trade'] == $this->_tpl_vars['getallTradeCat'][$this->_sections['t']['index']]['id']): ?> selected="selected" <?php endif; ?> value="<?php echo $this->_tpl_vars['getallTradeCat'][$this->_sections['t']['index']]['id']; ?>
" ><?php echo $this->_tpl_vars['getallTradeCat'][$this->_sections['t']['index']]['trade_category']; ?>
</option>
                    <?php endfor; endif; ?>
                </select>
                <select class="select" name="jobtype" id="jobtype">
                	<option value="0">Select Job Type</option>
                    <?php unset($this->_sections['t']);
$this->_sections['t']['name'] = 't';
$this->_sections['t']['loop'] = is_array($_loop=$this->_tpl_vars['getallTradeJobType']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['t']['show'] = true;
$this->_sections['t']['max'] = $this->_sections['t']['loop'];
$this->_sections['t']['step'] = 1;
$this->_sections['t']['start'] = $this->_sections['t']['step'] > 0 ? 0 : $this->_sections['t']['loop']-1;
if ($this->_sections['t']['show']) {
    $this->_sections['t']['total'] = $this->_sections['t']['loop'];
    if ($this->_sections['t']['total'] == 0)
        $this->_sections['t']['show'] = false;
} else
    $this->_sections['t']['total'] = 0;
if ($this->_sections['t']['show']):

            for ($this->_sections['t']['index'] = $this->_sections['t']['start'], $this->_sections['t']['iteration'] = 1;
                 $this->_sections['t']['iteration'] <= $this->_sections['t']['total'];
                 $this->_sections['t']['index'] += $this->_sections['t']['step'], $this->_sections['t']['iteration']++):
$this->_sections['t']['rownum'] = $this->_sections['t']['iteration'];
$this->_sections['t']['index_prev'] = $this->_sections['t']['index'] - $this->_sections['t']['step'];
$this->_sections['t']['index_next'] = $this->_sections['t']['index'] + $this->_sections['t']['step'];
$this->_sections['t']['first']      = ($this->_sections['t']['iteration'] == 1);
$this->_sections['t']['last']       = ($this->_sections['t']['iteration'] == $this->_sections['t']['total']);
?> 
	                	<option value="<?php echo $this->_tpl_vars['getallTradeJobType'][$this->_sections['t']['index']]['id']; ?>
" <?php if ($this->_tpl_vars['jobtype'] == $this->_tpl_vars['getallTradeJobType'][$this->_sections['t']['index']]['id']): ?> selected="selected" <?php endif; ?>><?php echo $this->_tpl_vars['getallTradeJobType'][$this->_sections['t']['index']]['trade_category']; ?>
</option>
                    <?php endfor; endif; ?>
                </select>
                <input type="text" class="input" name="postalcode" id="postalcode" <?php if ($this->_tpl_vars['postalcode'] != ''): ?> value="<?php echo $this->_tpl_vars['postalcode']; ?>
" <?php endif; ?> placeholder="Postcode" />
                <input type="submit" value="Search" class="btn btnwdth70" />
             </form>   
                <section class="clear"></section>
            </section>
            <section class="mainbox_findjobs">
            
            <section class="find_job_table">
            	<dl>
                	<dt class="col1"><?php echo $this->_tpl_vars['recordsFound']; ?>
 Matching Open Jobs</dt>
                    <dt class="col2">Location</dt>
                    <dt class="col3">Date Posted</dt>
                    <?php if ($_SESSION['getbids_id']): ?>
                    <dt class="col4">Interest</dt>
                    <dt class="col5">&nbsp;</dt>
                    <?php else: ?>
                    	<dt class="col4">&nbsp;</dt>
                        <dt class="col5">&nbsp;</dt>
                    <?php endif; ?>
                    <section class="clear"></section>
                </dl>
				<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['jobsArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>                
            	<dl>
                	<dd class="col1">
                    	<h5><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/jobs/<?php echo ((is_array($_tmp=$this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['postjob_id'])) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
/findjobdetail/"><?php echo ((is_array($_tmp=$this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['job_desc'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 40, "") : smarty_modifier_truncate($_tmp, 40, "")); ?>
</a></h5>
                        <h6><?php echo $this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['tradename']; ?>
</h6>
                    </dd>
                    <dd class="col2"><h4><a href="javascript:;"><?php echo $this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['suburbname']; ?>
</a></h4> </dd>
                    <dd class="col3"><?php echo ((is_array($_tmp=$this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['date_added'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y") : smarty_modifier_date_format($_tmp, "%d/%m/%y")); ?>
</dd>
                    <?php if ($_SESSION['getbids_id']): ?>
	                    <dd class="col4"><?php if ($_SESSION['getbids_id']):  echo $this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['counttradesmaninterested']; ?>
 Tradesman interested<?php endif; ?></dd>
    	                <dd class="col5"><a <?php if ($_SESSION['getbids_id']): ?> href="<?php echo $this->_tpl_vars['siteroot']; ?>
/jobs/<?php echo ((is_array($_tmp=$this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['postjob_id'])) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
/findjobdetail/" <?php else: ?> href="<?php echo $this->_tpl_vars['siteroot']; ?>
/signin/" <?php endif; ?>  class="btn">View Job</a></dd>
					<?php else: ?>				                        
                    	<dd class="col4" style="padding-left:80px;"><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/jobs/<?php echo ((is_array($_tmp=$this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['postjob_id'])) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
/findjobdetail/" class="btn">View Job</a></dd>
                    <?php endif; ?>
                    <section class="clear"></section>
                </dl>
                <?php endfor; else: ?>
                    	<div class="error" style="padding:10px;text-align:center;">Oops, Sorry there are no job.</div>
                <?php endif; ?>
                
                  <?php if ($this->_tpl_vars['pagenation']): ?>
                    <section class="pagna">
                    <?php echo $this->_tpl_vars['pagenation']; ?>

                    </section>
                <?php endif; ?>
          <section class="clear"></section>
            </section>
                     <section class="clear"></section>
                 	 <section class="bgimg_shadow"></section>
                 	<section class="clear"></section>
                </section>
            
            
            
            
            
        </section>
        <section class="clear"></section>
    </section>
</section>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>